﻿using System;
using System.Collections.Generic;
using TickSharp.Core.Interfaces;
using TickSharp.Core.Interfaces.Repositories;
using TickSharp.Core.Model;

namespace TickSharp.Tests.Fakes
{
    public class FakeEntryRepository : IEntryRepository
    {
        private readonly IEnumerable<Entry> _entriesToReturn;

        public FakeEntryRepository(IEnumerable<Entry> entriesToReturn)
        {
            _entriesToReturn = entriesToReturn;
        }

        public IEnumerable<Entry> List(DateTime startDate, DateTime endDate, IEnumerable<EntryFilter> filters)
        {
            return _entriesToReturn;
        }

        public IEnumerable<Entry> List(DateTime startDate, DateTime endDate)
        {
            return _entriesToReturn;
        }
    }
}